package com.mingqijia.gassafety.webserver.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Size;
import java.util.List;

/**
 * <p>
 *
 * @author wanghai
 * @since 2022-02-25
 */
@ApiModel(value = "联系人信息维护入参")
@Data
public class ContactsEditRequest {
    @ApiModelProperty("客户 id")
    private Integer id;

    @ApiModelProperty(value = "联系人列表")
    @Valid
    @Size( max=10 ,message = "联系人最多添加10位.")
    List<ContactsRequest> contactsList;
}
